//
//  IsPhoneVersionHeader.h
//  CenturyInterconnection
//
//  Created by l-sheng on 16/5/31.
//  Copyright © 2016年 Shanghai DuRui Information Technology Company. All rights reserved.
//

#ifndef IsPhoneVersionHeader_h
#define IsPhoneVersionHeader_h




////是否为iphone4
#define IS_IPHONE_4 ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )480 ) < DBL_EPSILON )
#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone4S ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)
#define IS_IPAD   (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)


// 系统版本
#define iOS7 ([UIDevice currentDevice].systemVersion.doubleValue >= 7.0)

#define IOS7_OR_LATER  ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)




// Common Definition
#define DefaultNfCenter [NSNotificationCenter defaultCenter]
#define SharedApp [UIApplication sharedApplication]





#endif


